package com.example.StrategyPattern.service.strategy;


import com.example.StrategyPattern.annotation.PayType;
import com.example.StrategyPattern.enums.PayTypeEnum;
import com.example.StrategyPattern.service.PayService;
import org.springframework.stereotype.Service;

/**
 * 功能描述:
 *
 * @author: 李明杰
 * @date: 2021/11/24 20:52
 */
@PayType(value = PayTypeEnum.WX)
@Service
public class WxPayServiceStrategy implements PayService {
    /**
     * 支付
     */
    @Override
    public void pay() {
        System.out.println("微信支付成功");
    }
}
